﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WYJWeb
{
    public class TypeMap
    {
        public static List<KeyValuePair<string, List<Type>>> TypeHash  = new List<KeyValuePair<string, List<Type>>>()
        {
            new KeyValuePair<string, List<Type>>(DataType.INT.ToString(),new List<Type>(){
                typeof(int)
            }),
            new KeyValuePair<string, List<Type>>(DataType.NVARCHAR.ToString()+"(255)",new List<Type>(){
                typeof(string)
            }),
            new KeyValuePair<string, List<Type>>(DataType.DATETIME.ToString(),new List<Type>(){
                typeof(DateTime)
            }),
            new KeyValuePair<string, List<Type>>(DataType.BIT.ToString(),new List<Type>(){
                typeof(bool)
            }),
            new KeyValuePair<string, List<Type>>(DataType.BIGINT.ToString(),new List<Type>(){
                typeof(TimeSpan)
            })
        };

    }
}
